package NGUYENDUCVIET_OBJECT;

public class CIRCLE_ENTITY {
	private double Side1;
	private double Side2;
	private double Side3;
	
	public double Area(CIRCLE_ENTITY objEntity){
		double p = (objEntity.getSide1() + objEntity.getSide2() + objEntity.getSide3())/2;
		return Math.sqrt(p*(p-objEntity.getSide1())*(p-objEntity.getSide2())*(p-objEntity.getSide3()));
	}
	
	public double Perrimetter(CIRCLE_ENTITY objEntity){
		return objEntity.getSide1() + objEntity.getSide2() + objEntity.getSide3();
	}

	public double getSide1() {
		return Side1;
	}

	public void setSide1(double side1) {
		Side1 = side1;
	}

	public double getSide2() {
		return Side2;
	}

	public void setSide2(double side2) {
		Side2 = side2;
	}

	public double getSide3() {
		return Side3;
	}

	public void setSide3(double side3) {
		Side3 = side3;
	}
	
}
